package cn.jbit.ams.detection;

import java.util.List;
import java.util.TimerTask;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;

import com.aliyuncs.exceptions.ClientException;
import com.bdqn.chit;

import cn.jbit.ams.order.biz.OrderService;
import cn.jbit.ams.user.biz.UserService;
import cn.jbit.ams.user.pojo.Order;
import cn.jbit.ams.user.pojo.User;

public class TimeOrder extends TimerTask{

	@Autowired
	private OrderService orderService;

	// 静态初使化当前类
	public static TimeOrder timeOrder;

	@PostConstruct
	public void init() {
		timeOrder = this;
	}
	@Override
	public void run() {
		timeOrder.orderService.orderOk();
	}
}
